check if string had upper case leters in python